import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'lx_location_plugin_method_channel.dart';

abstract class LxLocationPluginPlatform extends PlatformInterface {
  /// Constructs a LxLocationPluginPlatform.
  LxLocationPluginPlatform() : super(token: _token);

  static final Object _token = Object();

  static LxLocationPluginPlatform _instance = MethodChannelLxLocationPlugin();

  /// The default instance of [LxLocationPluginPlatform] to use.
  ///
  /// Defaults to [MethodChannelLxLocationPlugin].
  static LxLocationPluginPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [LxLocationPluginPlatform] when
  /// they register themselves.
  static set instance(LxLocationPluginPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<String?> startLocationService() {
    throw UnimplementedError('startLocationService() has not been implemented.');
  }

  Future<String?> stopLocationService() {
    throw UnimplementedError('stopLocationService() has not been implemented.');
  }

  Stream<Map<String, dynamic>> get locationUpdates {
    throw UnimplementedError('locationUpdates has not been implemented.');
  }

}
